package com.yuma.singleton;

// 饿汉 （安全的）
public class HungrySingleton {
    private HungrySingleton(){}
    // 直接赋值
    private static HungrySingleton instance = new HungrySingleton();

    public static  HungrySingleton getInstance(){
        return instance;
    }
}
